package lab02;


public class Test05 {
    //属性
    private int Long;//长
    private int Width;//宽
    private int Height;//高
    //方法
    public void setVariable(int Long,int Width,int Height){
        this.Long = Long;
        this.Width = Width;
        this.Height = Height;
    }
    public int getVolume(){
        return Long*Width*Height;
    }

    public Test05(int Long,int Width,int Height){
        this.Long = Long;
        this.Width = Width;
        this.Height = Height;
    }

    public static void main(String[] args) {
        Test05 test05 = new Test05(10,10,10);
        test05.setVariable(15,15,15);
        test05.getVolume();
    }
}
